/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: Dec 31, 2009
 * Time: 11:02:26 AM
 * To change this template use File | Settings | File Templates.
 */
import org.jdom.Element;

// Referenced classes of package dk.brics.jwig.analysis.summarygraph:
//            Node

public class Location
{

    public Location(Node node, Element element)
    {
        n = node;
        e = element;
    }

    public Node getNode()
    {
        return n;
    }

    public Element getElement()
    {
        return e;
    }

    public boolean equals(Object obj)
    {
        if(!(obj instanceof Location))
        {
            return false;
        } else
        {
            Location location = (Location)obj;
            return location.n == n && location.e == e;
        }
    }

    public int hashCode()
    {
        return n.hashCode() + e.hashCode();
    }

    Node n;
    Element e;
}

